import { ref } from 'vue'
const parameter = ref(localStorage.getItem('parameter'));

function setParameter(val = '') {
  parameter.value = val;
  localStorage.setItem('parameter', val);
}

export default function useParameter() {
  return [parameter, setParameter];
}